package com.netString;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Scanner;

public class TestString {

	public static void main(String[] args) 
	{
		Scanner in = new Scanner(System.in);
		
		String str = in.nextLine();
		
		System.out.println(str);
		
		String s1 = "my";
		
	   System.out.println("occurance of " + s1 + "   " + Count(str, s1));
	}

	private static int Count(String str, String s1)
	{  
		String term = str;
		
		int cnt =0;
		
		while(term.length()>0)
		{
			int index = term.indexOf(s1);
			if(index == -1)
				break;
			
			term = term.substring(index + s1.length(), term.length());
			cnt++;
		}
		
		
		return cnt;
	}

}
